package name.zhengkeli.cloud.auth

import io.ktor.serialization.kotlinx.json.json
import io.ktor.server.application.*
import io.ktor.server.plugins.contentnegotiation.ContentNegotiation

fun main(args: Array<String>) {
    io.ktor.server.netty.EngineMain.main(args)
}

fun Application.module() {
    install(ContentNegotiation) { json() }
    configureExceptionHandler()
    configureStatusService()
    configureAuthService(environment.config.config("auth"))
}
